//桌面端定制化大小
:root {
    --d-max-width: 1560px; /* 修改最大宽度为 1200px */
}
.d-header > .wrap {
    padding: 0 50px 0 70px;
}

// 最外层背景色为F7F8F9
#main {
    background: #F7F8F9;
}

// 修改main-outlet的样式
#main-outlet {
    background: #fff;
    padding: 46px 60px;
    border-radius: 16px;
    z-index: 1;
}

.site-logo-openKylin {
    padding-right: 5px;
    border-right: 2px solid;
    margin-right: 5px;
}

// 板块页面相关样式调整
// 自定义板块图标大小及间距
.category-logo.aspect-image {
    margin: 0 1em 1em 0 !important;
    width: 72px;
}
a.last-posted-at {
    margin-left: auto;
    font-size: 12px !important;
}
.category-list.with-topics .category {
    width: 49.8%
}
#categories-only-category {
    padding-left: 1.5625em;
}
.category-list .latest {
    padding-left: 1.5em;
}
.category-list .topics {
    text-align: center;
}

//帖子页面，去除table中的border，并且odd行背景色为白色 
.topic-list-item, tr, .topic-list-body {
    border: none;
}
.topic-list-item:nth-child(even) {
    background-color: #eeeeee;
}
.topic-list .num .number {
    color: #F2780B;
}

//登录注册按钮增加border-radius
.d-header .login-button, .d-header .sign-up-button {
    border-radius: 20px;
    padding: 6px 19px;
    background: #236DE6;
}
.d-header .sign-up-button {
    margin-left: 20px;
}


// 修改#navigation-bar，导航栏的样式
.navigation-container {
    background-color: #F7F8F9;
    border: 1px solid #EEEEEE;

    #navigation-bar {
        margin-bottom: 0;
        li {
            margin-right: 0;
    
            a {
                padding: 20px 24px;
            }
    
            a.active {
                background-color: #fff;
                color: #1F1F1F;
                font-weight: 500;
            }
        }

        // 兄弟节点navigation-controls样式修改
        + .navigation-controls {
            margin-bottom: 0;
        }
    }
}
#create-topic {
    // display: none;
    height: 100%;
}

//category-list相关样式修改， 1080P下的宽度为1084px
.category-list tbody {
    border: none;
}
//tbody下tr奇数行背景色为#F7F8F9
.category-list tbody tr:nth-child(odd) {
    background-color: #F7F8F9;
}
.category-list.with-topics {
    margin-left: 0; //消除左边距
}
.category-list td {
    padding-top: 28px;
}
.category-list td:first-of-type {
    padding-left: 24px;
}
.category-list tbody .latest {
    padding: 20px 24px 28px 24px;
    font-size: 14px;
}
.category-list tbody .category {
    border-left: 3px solid var(--category-badge-color, var(--primary-low));
}
.category-tags {
    padding-left: 5.925em;
    width: 100%;
    margin-top: 1em;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.category-tag {
    background: #EEEEEE;
    border-radius: 12px;
    color: #626262;
    padding: 2px 12px;
    font-weight: 500;
}

//修改帖子页 top中时间筛选的样式，是#after-custom-top-chooser的兄弟节点
.cus-top-chooser {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid #1F1F1F !important;
    font-size: 14px;
    margin-top: 24px;
    padding: 3px 20px 3px 0;

    .selected-name {
        width: 80px;
        margin: 5px 0 5px 24px !important;
        font-weight: 500;
        font-size: 14px;
        color: #1F1F1F;
        .top-date-string {
            display: none;
        }
    }

    svg {
        transform: translateY(1px);
    }
}

.topic-list-item:nth-child(even) {
    background-color: #F7F8F9;
}

// 帖子页下面的tag样式修改
.custom-topic-list-item {
    .discourse-tags {
        margin-top: 8px;
        .discourse-tag.simple:not(:last-child):after {
            content: none;
        }
        a {
            background: #EEEEEE;
            border-radius: 12px;
            color: #626262;
            padding: 2px 12px;
            font-weight: 500;
            margin-right: 12px;
        }
    }
}

// 底部copyright样式修改
#ok_copyright {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    color: var(--primary);
    font-size: var(--font-up-0);
    line-height: var(--line-height-small);
    margin: 1rem;

    a {
        color: var(--tertiary);;
    }
}